home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / HITables.idl < prev    next >
Text File  |  1996-05-01  |  4KB  |  124 lines

  1. /*
  2.      File:        HITables.idl
  3.  
  4.      Contains:    Interfaces to two-dimensional list class
  5.  
  6.      Version:    Technology:    System 8.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __HITABLES_IDL__
  20. #define __HITABLES_IDL__
  21.  
  22. #include <HIPanels.idl>
  23. #include <HILists.idl>
  24. #include <HIImagingObjects.idl>
  25. #include <HITableTypes.idl>
  26.  
  27.  
  28. interface HITable : HIPanel
  29. {
  30. // ======================================================
  31. // Public Methods
  32. // ======================================================
  33.  
  34.  
  35.     OSStatus    InitTable(    in RefLabel            identifier,
  36.                             in HIWindow         window, 
  37.                             in Rect             bounds,
  38.                             in HIItemStorage    itemStorage );                
  39.                                 
  40.  
  41.  
  42.     OSStatus    AddRows( in HIItemIndex rowIndex, in UInt32 numItems );                        
  43.                 // Adds empty rows to table
  44.     OSStatus    AddColumns( in HIItemIndex columnIndex, in UInt32 numItems );                
  45.                 // Adds empty columns to table
  46.     OSStatus    DeleteRow( in HIItemIndex rowIndex );                                        
  47.                 // Deletes the specified row from a table; Also deletes the item data if any
  48.     OSStatus    DeleteColumn( in HIItemIndex columnIndex );                                    
  49.                 // Deletes the specified column from a table; Also deletes the item data if any
  50.     
  51.     
  52.     OSStatus    GetExtent( out HIItemIndex rowIndex, out HIItemIndex columnIndex );    
  53.                 // Returns the number of rows and columns in a table
  54.     
  55.     
  56.     OSStatus    SetItemImage( in HIItemIndex rowIndex, in HIItemIndex columnIndex, 
  57.                                 in ConstHIImageRef imageRef, in HIAdoptionFlags imageAdoptionFlags );
  58.     OSStatus    GetItemImage( in HIItemIndex rowIndex, in HIItemIndex columnIndex, 
  59.                                 out HIImageRef imageRefPtr );    
  60.  
  61.  
  62.  
  63.     OSStatus    SetItemEnabledState( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in HIItemState enableState );    
  64.     HIItemState    GetItemEnabledState( in HIItemIndex rowIndex, in HIItemIndex columnIndex );                                
  65.  
  66.  
  67.  
  68.     OSStatus    SetItemSelectedState( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in HIItemState selectedState );
  69.     HIItemState    GetItemSelectedState( in HIItemIndex rowIndex, in HIItemIndex columnIndex );                            
  70.  
  71.  
  72.     OSStatus    GetSelectedItems( in UInt32 requestedCount, out UInt32 actualCount,
  73.                                     inout HICellCoordinate cellArray );                        
  74.     
  75.  
  76.  
  77.     OSStatus    AddItemCollectionItem( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in CollectionTag tag,
  78.                     in UInt32 inDataSize, out UInt32 outDataSize, in void *data );                                
  79.                 // For developer use exclusively. table panels completely ignore the contents of collection items;
  80.                 // These methods are just pass-throughs to the Collection Manager. 
  81.                 
  82.     OSStatus    GetItemCollectionItemData( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in CollectionTag tag,
  83.                     in ByteCount dataSizeAllowed, out ByteCount dataSizeReturned, in void *data );                                
  84.                     
  85.     OSStatus    RemoveItemCollectionItem( in HIItemIndex rowIndex, in HIItemIndex columnIndex, in CollectionTag tag );    
  86.  
  87.  
  88.  
  89.  
  90.  
  91.     implementation 
  92.     {
  93.  
  94.         passthru C_h =     "#include <HILists.h>"
  95.                         "#include <HITableTypes.h>";
  96.         passthru C_xh = "#include <HILists.xh>"
  97.                         "#include <HITableTypes.h>";
  98.  
  99.         releaseorder:                InitTable,
  100.                                     AddRows,
  101.                                     AddColumns,
  102.                                     DeleteRow,
  103.                                     DeleteColumn,
  104.                                     GetExtent,
  105.                                     SetItemImage,
  106.                                     GetItemImage,
  107.                                     SetItemEnabledState,
  108.                                     GetItemEnabledState,
  109.                                     SetItemSelectedState,
  110.                                     GetItemSelectedState,
  111.                                     GetSelectedItems,
  112.                                     AddItemCollectionItem,
  113.                                     GetItemCollectionItemData,
  114.                                     RemoveItemCollectionItem,
  115.                                     HitTest,
  116.                                     GetItemRect,
  117.                                     NewItemStorage,
  118.                                     DisposeItemStorage;
  119.     };
  120. };
  121.  
  122.  
  123. #endif
  124.